const IP_GATEWAY = "https://test.zhuoruimu.cn"; // API网关地址
// const IP_GATEWAY = 'http://192.168.2.27:6001/'; // API网关地址
// const IP_GATEWAY = 'https://vue.zhuoruimu.cn'; //正式 API网关地址

const proxy = {
  "/base/api": {
    target: IP_GATEWAY,
    ws: true,
    changeOrigin: true,
  },
  "/consultation/api": {
    target: IP_GATEWAY,
    ws: true,
    changeOrigin: true,
  },
  "/message/api": {
    target: IP_GATEWAY,
    ws: true,
    changeOrigin: true,
  },
  "/payment/api": {
    target: IP_GATEWAY,
    ws: true,
    changeOrigin: true,
  },
  "/hisinterface/api": {
    target: IP_GATEWAY,
    ws: true,
    changeOrigin: true,
  },
  "/king/api": {
    target: IP_GATEWAY,
    ws: true,
    changeOrigin: true,
  },
  "/wxplatform/api": {
    target: IP_GATEWAY,
    ws: true,
    changeOrigin: true,
  },
  "/schedule/api": {
    target: IP_GATEWAY,
    ws: true,
    changeOrigin: true,
  },
  "/agedness/api": {
    target: IP_GATEWAY,
    ws: true,
    changeOrigin: true,
  },
  "/cross_aliyuncs": {
    target: "https://nls-gateway.cn-shanghai.aliyuncs.com",
    ws: true,
    changeOrigin: true,
    pathRewrite: { "^/cross_aliyuncs": "" },
  },
  // IM 导入账号信息，需要解决跨域问题
  "/cross": {
    target: "https://console.tim.qq.com",
    ws: true,
    changeOrigin: true,
    pathRewrite: { "^/cross": "" },
  }, // 此处有一点需要注意，不能在最后一个代理对象后面加逗号，否则会报错！！
};

export { proxy };
